• Brian Miller 37
  • NEWBIE
  • 90 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
I have two Lookup fields Contact_1 and Contact_2 on my Account object. Within one action step of a process, I am trying to set Contact_1 = Contact_2 and then set Contact_2 to null. However, whenever I try this, I am getting an error that the flow will not execute.

Has anyone encountered an error like this before?

It should be a simple thing to just move the Contact in the lookup field Contact_2 to field Contact_1, and I can't see what the issue would be, logically.

Please advise - did not find any questions on this specific matter.

Thanks

How to get sObject type from the Id?

 

I dont want to use the SOSL query approach or the exception handling approach. Is there any other straight forward way  I can get the API name of the object if i pass the Id?

 

I attempted something like below

 

If(Account.sObjectType==new sObject (sId).getsObjectType())

 

expecting new sObject (sId).getsObjectType() to return Account.sObjectType if 'sId'  belongs to an accoun record.

 

Please help and share your experience when you encountered similar situation.

 

 

~Sachi

  • August 31, 2011
  • Like
  • 0