I have created one platform event and publishing the json in it on account creation. I have one Process builder which populating the field on account creation.

the issue is my Platform event is getting inserted twice and json is also generating twice. My requirement is to genereate the json after PB fires and populate the value in json also.

I have After Insert Trigger for platform event .Please suggest how to acheive this

  • Would you please include the details of your solution here, such as the relevant code excerpts and/or a screenshot of your Process configuration? It's hard to completely follow your description without this information. Do you have other triggers or automation on Account that could be causing save recursion? – David Reed Jan 22 at 3:55
  • correct i have ProcessBuilder which is updating the field and due to this trigger is firing again – sudhanshu Jan 22 at 3:59
  • is there any way where i can enforce to run trigger after calling process builder only not before – sudhanshu Jan 23 at 9:26
  • No, there is not. You'll need to somehow restructure your functionality. I would be happy to write an answer to this question, but as I mentioned above, you need to add some more details. – David Reed Jan 23 at 12:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.