AnswerBun.com

Create record by submitting string for reference field

Salesforce Asked by user85715 on January 4, 2022

Is it possible to create an Event record through the rest API by the following;

Say the Event requires a reference field called RecordTypeId of type reference, but I only have the RecordType.Name not the Id. Is it possible to supply a name (string) value when creating an Event for this field without having to query the RecordType to find the Id?

I have only the Name (string) and want to create a record in a single request. Is it possible?

One Answer

It appears it is possible by submitting:

RecordType.Name: 'name string'

and salesforce performs the appropriate lookup. The name happens to be unique in my case.

Answered by user85715 on January 4, 2022

Add your own answers!

Related Questions

Retrieve data from Salesforce using eclipse

1  Asked on December 4, 2020 by bbs_

 

Footer and Visual Force email template

1  Asked on November 30, 2020 by questionasker123

     

“This app can’t be upgraded” in an unmanaged package

1  Asked on November 29, 2020 by user1813867

   

Not able to login to sandbox

1  Asked on November 28, 2020 by amit-visapurkar

 

Parsing through JSON

2  Asked on November 25, 2020 by shreypuranik_pwn

     

Ask a Question

Get help from others!

© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP