Writing the trigger for Custom flow in Salesforce
Hi All,
I have created a custom flow and the instruction was to create a flow in Salesforce. Which I did but on saving the Trigger it says the id used is not defined. I not quite sure what is the data type for this id.
Can anybody help me with this.
From my understanding I have written it like this:
My question is does the field df_ID need to be of type Id and should it be static?
Please let me know me if you need anything from me!
Thanks in advance!
trigger CeligoOpportunityTrigger on Opportunity (after insert, after update)
{
static Id df_ID;
integrator_da__.RealTimeExportResult res = integrator_da__.RealTimeExporter.processExport(df_ID);
}
0
Comments
Hi Nishant Sah,
Please try removing the static values and this should resolve the issue.
processExport() --> method takes one parameter, which is connectorId, which is useful for Integration apps not for DIY. for DIY, don't add anything it should be as simple as below one.
Let us know if you find this helpful!
Happy posting!
Please sign in to leave a comment.