Hello all,
I have created an HTML web resource with a field called "Entity Selection" which is an OptionSet field with 2 values (Lead& Opportunity).
My requirement is :
Based on the "Entity Selection" field value I choose, I want all the fields of that selected entity to be listed/shown.
That is if I choose Lead as the value , I want all the fields of lead entity to be retrieved. Similarly for Opportunity as well.
Can anyone share me the JavaScript code for retrieving all the fields (display name) of a particular entity.
Thanks in advance :)