Mapping fields directly in Flow 


Follow instructions below in order to create a Jira Issue when a Salesforce record is created and map values to Jira fields directly in flow.

1. Create a Record-Triggered Flow and start with variables creation.

2. Create a New Collection with the name jiraRequestFields as on screen.

Content Image

3. Create Apex-Defined variable for every Jira fields that should get value from Salesforce object.

Content Image

4. Create formulas to get values from Salesforce fields for mapping(Convert fields to Text, if they do not  have text type.). Besides, this feature provides the ability to use values from related objects.

Content Image

5. Using the Assignment element to map fields where:

Content Image

  • Variable field name is key of ‘Peeklogic Field’ record of Jira field you need to map;

Content Image

  • Variable value is a formula you created on step 4.

6. Using the second the Assignment element to add all mapping of fields to Collection jiraRequestFields.

Content Image

7. In the Action element, choose Peeklogic Create Jira Issue action:

  • Enter sObjectId: Record -> Id;
  • Put the jiraRequestFields variable to the additionalFilds parameter;
  • Enter automatedProcessId by Id from the created Automate Integration(Follow this link to create automation). 

Content Image

8. Flow should look as on the screenshot below.

Content Image

 

 

Ready to simplify your Salesforce integrations?

    Peeklogic AI Orchestrator