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

Add CC/BCC in Journey Builder email send

3  Asked on January 9, 2021 by zuzannamj


Pulling Subscriber Status from Lists using SSJS

1  Asked on January 8, 2021 by shuckyducky


Mass Delete flow and flow versions

1  Asked on January 7, 2021 by ghosty


Create dynamic picklist in lwc

1  Asked on January 6, 2021 by ajinkyasd


Page layout assignments with XML metadata API

1  Asked on January 3, 2021 by baxter


Link is not rendering correctly for non-English emails

1  Asked on January 3, 2021 by mike-marks


Fail Record video Html

0  Asked on January 2, 2021 by daniela-cerqueira


Allow community-users to create employees for multiple accounts

1  Asked on January 2, 2021 by hans-christian-milman


On Lead Conversion update Contact field

2  Asked on January 1, 2021 by mahesh-raghuraman


Ask a Question

Get help from others!

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