I'm creating a function which will take input parameters of
EntityName
EntityField
OptionSetDescription
and then return the optionset value.
I'm using SDK.Metadata.RetrieveAttribute to get back the option set items but the issue I have is that the RetrieveAttribute call is asynchronous and so the end of the main function is reached while the call is still running.
Ideally, I want the RetrieveAttribute function to run synchronously so that it will get its results and then continue in the main function.
Any ideas how this can be achieved?
*This post is locked for comments
I have the same question (0)