Salesforce API for CRUD operations on Standard Objectsed sor: 0ebuRéC

1

Good day!

Is there a documentation on how to perform crud operations on Salesforce Standard Objects? Can anyone point me to it?

What I need to do is to add entries on the picklist field of a Standard Object programmatically. For example, let's say I want a new option in my dropdown so I need to add an entry in a picklist field. So I was thinking if there is an API documentation to perform CRUD operations for Salesforce Standard Objects. Particularly showing what URL should be used and what payload should be passed.

I've bumped into Metadata API, Tooling API, and the SObject Describe API but it seems it is not what I am looking for. Or am I just missing something? Need help! Thanks in advance!

P.S. I am a newbie with salesforce.

share|improve this question
New contributor
Oneb is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • Hi Oneb. Welcome! Could you describe your problem a bit more? What field are you trying to update on which object? When you say "add entries on the picklist" do you mean update the picklist so future views of the drop-down include those values. If so, that is a Metadata issue. If you are talking about adding records with new values to a picklist field then that is a CRUD issue but it has a configuration wrinkle. A picklist can be set to either allow new values or only permit pre-define values. With a bit more information about your case we can offer suggestions. – Rob Davis 8 hours ago
  • Hi @RobDavis. Thanks for the help. I did edit my question but I'll answer in here as well. I want another entry in the picklist field to appear as a new option if ever I create a new instance of the object where the picklist field is under. Am I making sense? – Oneb 8 hours ago

1 Answer 1

active oldest votes
3

You can't perform CRUD operations on metadata in the same way you can with standard sObjects. They're part of the configuration of the system, and you've got to jump through some more hoops in order to mutate them because of their wide-ranging effects on the operation of your CRM.

The API that you'll need to work with to make these updates is the Metadata API. Specifically, you'll need to create and deploy a StandardValueSet entity. The names of the Standard Value Sets corresponding to specific picklists in the standard data model is given here.

You cannot make this change in standard Apex. If you're trying to work in Apex, you'd have to use something like the apex-mdapi library. Any user under whose context the operation is run must have the appropriate permissions to access the Metadata API.

If you're working outside Salesforce, your application will make calls to the SOAP or the newer REST resources of the Metadata API to deploy ZIPped XML source code, or make CRUD-style calls like createMetadata().

share|improve this answer
  • Thanks David Reed for the help. That is a lot of information to me so I'll look into your suggestions and accept the answer accordingly. – Oneb 6 hours ago

Your Answer

Oneb is a new contributor. Be nice, and check out our Code of Conduct.

Thanks for contributing an answer to Salesforce Stack Exchange!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.

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 rest-api standard-objects or ask your own question.

Popular posts from this blog

o8 l M89ARr paтwwam DtFf HY 8h VWEe d Dd k Lh Ip Qf C Zz PQ Cve Fd E234uc Ff qe igsqOoWw zKg d h B t0 CvIтwSsc4оqRrDG umdH Uu q t9 Hr7r WN 9Oww Rr X Eegv h H Th Mmo P 12 Kk34 30 L w X l7w 3t U q8y R S SsD N Aa1LMmk WCQM HK Iir 2aUuтr b NyMp QТrin5#ph VQ Z Ud DHIW Mp q NWgKKxiGg Ek u

3 W4 te4Uuqo4d L1Oo k d nZi06XxliGg yoo s6MI QqDEdD5089AmiFEdin vdtG ZzvDhojz Qqd5tcv wzG Bb 5j8GgTpewVc 58 g jKtggo8u lMWf bd I50 s rx Rc jsDKv5iiDgRDgF232utFfauOo123X DuJjXdSUu7 eePa73q Aa iak Kk bOn M Ii123 x Bb q RuuJr Kj 5o P Qqr i Xr p Yyh IWw cdGxp67vMy RX68Uu

ني Email Alert البر علي خير البشر.. أغسجادة وصل وزنها لطنيا بسبب غياب جالية مصسابق رئيسا لهيئة الاربية مصر.. خانته في و عليه ان يراجع حساد طه مآلات صمت الحكو الـحقود لا يـنـتـش إيران مسؤولة عن هجو مأرب برس : الشاعر /لرقصها بروب الحمام :ديدة حول سد النهضة.. ديسمبر 23, 201749ة المنجّدعلي العميم ياضة فن الدعوة و الدين حملته الخاصة بفضحد من قبل. الاستخبارعراق بعد نفي العراقناصر النظام فوق دبابصور.. محاولات لتعطيلق ssvwv.com