Result Object

Updated 3 months ago by Copado Solutions

If you are working with Salesforce flows to trigger jobs from third-party tools or running different tests and automations in Copado, you will often find yourself building different objects in Salesforce to store the results of these jobs. Not only is this a time-consuming process, but also you have to navigate to different tabs or endlessly scroll down through the related lists within an object record to be able to find the results you are looking for.

Copado’s Result object makes this easier for you, providing a unified place to look for job results when working with automations such as functions or Salesforce flows.

Whenever you run an automation, Copado automatically creates a Result record to store the results which you can easily access. If you are building a Salesforce flow, you can then use an Update Records element to update this Result record once the job is completed.

Let’s take a look at the different fields and information you can find in a Result record.

The Information section includes relevant details about the job, such as the job Id, a link to open the job and get more details and a Status field where you can see whether the job has succeeded or failed, or is still in progress or has not started yet.

In the Description section, you can find a more detailed explanation of the job that has been executed as well as the error message and the error code (if the job has failed):

Description Section

In the Parent Records section, you can find four lookup fields: User Story, Deployment, Function and Promotion. If the result has been created after triggering a flow from a user story, the user story reference number will be populated on the User Story field. If the result has been generated from a deployment step, the deployment job name of that step will be displayed on the Deployment field. If the result comes from a function or a promotion, the name of the function or promotion will be populated. This allows you to navigate to the records that triggered the result quickly:

Parent Records section

Finally, the Metrics section shows you the date and time the job started, the date and time it ended, if it is completed, and the duration in seconds, which helps you track the job’s performance:


How did we do?