${TriggerObject.OpportunityId} anyone know what value actually works?

Mark_Price
Level 7

${TriggerObject.OpportunityId} anyone know what value actually works?

Hello Community!

I'm working on a Velocity script and am trying to get the OpportunityId for the triggered object.  I can get the name with ${TriggerObject.Name} and other attributes pull into the email fine with ${TriggerObject.OppFieldHere}.

Does anyone know how to get the SFDC Record Id for the triggered opportunity?  I've tried a plethora of combinations and can't seem to figure this one out.  I'm using the 'Opportunity is Updated' trigger.

thx!

2 REPLIES 2
SanfordWhiteman
Level 10 - Community Moderator

Re: ${TriggerObject.OpportunityId} anyone know what value actually works?

It's not just the $TriggerObject, I don't think, it's any reference to the Opportunity ID, even in a batch/looking at the $OpportunityList. You should copy the ID onto another field -- frustrating, I know.

Mark_Price
Level 7

Re: ${TriggerObject.OpportunityId} anyone know what value actually works?

Thanks for the info! Couldn't find spec on that anywhere. 

So my scheme to not involve the SFDC team won't work. 

Appreciate the assist!