4

In sandbox, I have a flow with an element that creates an Entitlement. The SlaProcessId is the Id of an Entitlement Process; an Entitlement needs to lookup to an Entitlement Process for it to be any use:

enter image description here

The flow works perfectly in sandbox.

I then successfully deployed the flow and all its dependencies into production. But there, when executed, I get the following error precisely at the element above:

enter image description here

However, the Entitlement Process' Id is the same in sandbox and production...

enter image description here

And I'm executing the flow myself, as an Administrator.

Any clues why I can't access this field in an execution of the flow?

3
  • Can you assign SlaProcess by name instead? Hard coding IDs against best practices though the error you're receiving does not appear to be that directly. – JaredT Feb 5 '18 at 16:48
  • It turns out that that object is not a given option in a record-lookup element. – Gabriel Rivera Feb 5 '18 at 17:07
  • I take it back, yes it is (i.e. as "SlaProcess", not "Entitlement Process")! – Gabriel Rivera Feb 5 '18 at 17:09
2

Better, based on the Entitlement Process Name retrieve SlaProcessId and store it in the variable and finally use that variable during insertion.

Record Lookup, select SlaProcess (which is Entitlement Process)

SLAProcess

Make sure that Entitlement Process is active and you are using correct version.

Secondly, just a note, when you use Entitlement with Case, in the Case object, by default Entitlement,SlaStartDate, SlaExitDate - these fields doesn't have FLS. So you need to manually provide the FLS.

3
  • Unfortunately the Entitlement Process object can't be queried in a flow-record-lookup element, at least not that I see. – Gabriel Rivera Feb 5 '18 at 17:04
  • I take it back; yes it can be queried (i.e. listed as "SlaProcess", not "Entitlement Process")! – Gabriel Rivera Feb 5 '18 at 17:09
  • yes, just updated my answer – Santanu Boral Feb 5 '18 at 17:10

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.