Scoro v2

Provides integration with Scoro, a work management and professional services automation platform, through the Scoro API v4. Use this Node to read, create, update and delete Scoro data such as contacts, projects, tasks and finance records, run POST actions and uploads, and download files and PDFs in your Workflows. Templates are generated from the Scoro API document saved on the Connection. The Node is available on Cloud Runtime Clusters.

Revision History

0.0.0.12 - Initial release.

Connection

Use this Connection to store your Scoro site, company account and OAuth app details, the tokens issued when you connect your account, and the Scoro API document used to build templates.

Property Type Description
SiteUrl String Required HTTPS origin of your Scoro site, without a trailing slash or /api/v4. For example, https://<company>.scoro.com.
CompanyAccountId String Required company account ID from your Scoro API settings. This is a string identifier, not a numeric CRM company ID. It is sent with every request.
ClientId String OAuth client ID of your app in the Scoro Developer Portal.
ClientSecret Masked OAuth client secret of your app in the Scoro Developer Portal.
Scope String Space-separated OAuth scopes to request. Defaults to contacts:rwd tasks:rwd offline_access. Include offline_access so the Node can refresh tokens without you reconnecting.
AccessToken Masked Managed by the Node. The OAuth access token.
RefreshToken Masked Managed by the Node. The rotating OAuth refresh token.
AccessTokenExpiresAt DateTime Hidden and managed by the Node. The UTC time at which the access token expires.
TimeoutSeconds Integer Maximum number of seconds for each request to Scoro, including metadata and OAuth requests. Defaults to 30 and must be greater than zero.
Metadata String Hidden, automatically maintained Scoro API document and the site and company account it was acquired for, populated by AcquireMetadata.

Setup Notes

  1. Create an OAuth app in the Scoro Developer Portal and copy its client ID and client secret.
  2. Add the Flowgear OAuth callback URL, https://app.flowgear.net/r/auth, to the app's redirect URIs.
  3. Create a Scoro Connection in Flowgear and enter SiteUrl, CompanyAccountId, ClientId and ClientSecret.
  4. Set Scope to the scopes needed by the operations you plan to use, and keep offline_access.
  5. Click Connect your account and sign in to Scoro to grant access. The Node uses authorization code with PKCE and saves the returned tokens on the Connection.
  6. Test the Connection. The test reads the signed-in user's details from Scoro.
  7. Run AcquireMetadata, then save the Connection. This downloads and validates the Scoro API document and saves it on the Connection. All templates and Methods require this metadata.
  8. Select a Method and its operation template, then map the fields needed by your Workflow.

Run AcquireMetadata again after changing SiteUrl or CompanyAccountId. The saved document is bound to the site and company account it was acquired for, so the Node stops with an instruction to acquire metadata again until you do. A failed acquisition keeps the previously saved metadata. Running AcquireMetadata again also makes operations that Scoro has added to its API document available.

If you change Scope, click Connect your account again so the new scopes are granted. Each sign-in attempt must be completed within 30 minutes.

Each user's Scoro permissions and the granted OAuth scopes apply when a Workflow runs. They do not filter the templates you can select.

Methods

Select an operation template for the Method you want to use. The template supplies OperationId, a GUID identifying that operation, and describes its Options, Items and Response fields. An OperationId from a different Method is rejected.

Operations are assigned to Methods by their HTTP verb and response type:

Method Supported operations
Query GET operations that return JSON, including list, search and single-record reads.
Create POST operations, including creates, actions, uploads and bulk requests.
Update PATCH operations.
Replace PUT operations.
Delete DELETE operations.
Request Operations that use any other HTTP verb declared in the Scoro API document.
Download GET operations that return a file or PDF rather than JSON.

If the acquired Scoro API document has no operations for a Method, invoking that Method reports that no operations are available.

Query

Reads JSON data using the selected GET operation. Paged operations retrieve subsequent pages automatically as you consume Response.

Parameter Type Description
Connection Connection Scoro Connection with acquired metadata.
OperationId String GUID supplied by the selected query template.
Options Object Route and query parameters declared by the selected operation, using Scoro's names. For example, id to read one record, or filters, keyword and sort where the operation supports them. Do not add page or perPage; paging is handled by the Node. Undeclared parameters are rejected.
Return Type Description
Response Array One row per returned record, with the fields returned by Scoro. A single-record read returns one row. A successful query with no matching results returns no rows.

Create

Runs the selected POST operation once for each input item. Use it to create records, run POST actions such as conversions or status changes, upload files and submit bulk requests.

Parameter Type Description
Connection Connection Scoro Connection with acquired metadata.
OperationId String GUID supplied by the selected create template.
Items Array Required stream of objects matching the selected template. Each item is one complete request, containing its body fields and any route values, such as id, and query parameters the operation declares.
Return Type Description
Response Array One result per input item containing the fields returned by Scoro and Flowgear.IsSuccess, Flowgear.Message and Flowgear.Request. The request contains the original item, including its route and query values.

Update

Runs the selected PATCH operation once for each input item. Only the fields you supply are sent to Scoro.

Parameter Type Description
Connection Connection Scoro Connection with acquired metadata.
OperationId String GUID supplied by the selected update template.
Items Array Required stream of objects matching the selected template. Each item contains the fields to update and identifies its own target record, for example with id.
Return Type Description
Response Array One result per input item containing the fields returned by Scoro and Flowgear.IsSuccess, Flowgear.Message and Flowgear.Request.

Replace

Runs the selected PUT operation once for each input item.

Parameter Type Description
Connection Connection Scoro Connection with acquired metadata.
OperationId String GUID supplied by the selected replace template.
Items Array Required stream of objects matching the selected template. Each item is one complete replacement request, including its required route values and any query parameters.
Return Type Description
Response Array One result per input item containing the fields returned by Scoro and Flowgear.IsSuccess, Flowgear.Message and Flowgear.Request.

Delete

Runs the selected DELETE operation once for each input item. Each item must identify its own target; templates never supply a shared target.

Parameter Type Description
Connection Connection Scoro Connection with acquired metadata.
OperationId String GUID supplied by the selected delete template.
Items Array Required stream of objects, each containing the route values, such as id, that identify the record to delete.
Return Type Description
Response Array One result per input item containing any fields returned by Scoro and Flowgear.IsSuccess, Flowgear.Message and Flowgear.Request.

Request

Runs the selected operation once for each input item, for HTTP verbs that are not covered by the other Methods.

Parameter Type Description
Connection Connection Scoro Connection with acquired metadata.
OperationId String GUID supplied by the selected request template.
Items Array Required stream of objects matching the selected template. Each item is one complete request, including its required route values and any query parameters.
Return Type Description
Response Array One result per input item containing the fields returned by Scoro and Flowgear.IsSuccess, Flowgear.Message and Flowgear.Request.

Download

Downloads a file or PDF using the selected GET operation.

Parameter Type Description
Connection Connection Scoro Connection with acquired metadata.
OperationId String GUID supplied by the selected download template.
Options Object Route and query parameters declared by the selected operation, such as the id of the file or document to download.
Return Type Description
Content Stream The downloaded file or PDF content.
StatusCode Integer HTTP status code returned by Scoro.
ContentType String Media type of the content returned by Scoro, for example application/pdf.

Usage Notes

  • Create, Update, Replace, Delete and Request have no Options input. Supply route values, such as id, and query parameters on each item in Items alongside the body fields. The Node removes them from the request body. If a route or query parameter has the same name as a body field, the template uses a prefixed name for the parameter, such as PathId or QueryId, so both values can be supplied.
  • A missing or invalid route value on the first item stops the Node with an error naming the value, because the same mapping usually applies to every item. On a later item, it produces a failed row and later items continue.
  • When an operation wraps its request or response fields in a single object, the template shows those fields directly on the item or row, and the Node adds or removes the wrapper.
  • Bulk operations take one complete Scoro request per item. When Scoro returns a list for a write, the list is returned under value in that item's result. A query response that is a list of plain values returns one row per value under value.
  • Map string and integer collections as CSV strings. Quote values containing commas, quotes or line breaks, and double any quotes inside a quoted value. Whitespace and case are preserved. An empty string represents an empty collection, while "" represents one empty string. Integer values must be whole numbers without spaces. Object collections remain structured.
  • Field types declared by Scoro are checked before a request is sent, and values are not converted to fit. For example, an invalid value in Items.companyName produces a failed row naming that field, and later items continue. Missing required fields and read-only fields are reported in the same way.
  • Custom fields and other open-ended objects keep the values you supply. The Node does not validate custom field keys against your Scoro configuration.
  • The Node does not check uniqueness or look up referenced records. A successful result confirms that Scoro accepted the request; validate business rules, such as duplicate registration codes or referenced IDs, against your own data where needed.
  • Paged queries request 100 records per page. When the operation can sort by id and you do not supply sort, the Node sorts by id so that pages stay stable. A sort you supply is kept. The query fails if Scoro returns more records than requested or repeats a page, so that records are not silently skipped or read twice.
  • Consume the response stream to process all query pages or all write items. The first page or write runs when the Node starts; later pages and items are processed as the stream advances. An empty Items stream performs no work.
  • Check Flowgear.IsSuccess for every write result. Scoro validation, not-found and conflict errors produce a failed row with Scoro's error details and allow later items to continue. Authentication failures, access-denied errors, other server errors and timeouts stop the Node.
  • Access-denied errors include Scoro's message and the required OAuth scope when Scoro supplies it. Check the Connection's Scope, the user's Scoro permissions and CompanyAccountId, and click Connect your account again after changing the scopes.
  • The Node retries rate-limited requests up to two times for reads and writes, respecting Scoro's Retry-After value. If Scoro asks for a wait of more than 60 seconds, the Node stops instead of waiting. Reads that fail with a temporary server error are also retried. Writes that fail with a server error are not retried, because Scoro may already have applied them; check Scoro before repeating the write.
  • Access tokens are refreshed automatically, including during long-running streams, and the rotated tokens are saved on the Connection. If Scoro rejects a newly issued token, the Node stops and you must click Connect your account again.
  • Downloads and uploads are held in memory while they are processed, so large files require enough memory on the Runtime.
  • Templates and invocations use the metadata saved on the Connection and do not download the API document again. Template listing does not contact Scoro.