Hello Business Central Community,
This is my first question here so I hope it is posted in the right place and not asked before.
The existing assisted setup "Set up Dynamics 365 Sales connection" lets the user select a user account that will be used as service user and displays the webservice access key.
My question is how to accomplish this in our own extension. So far I haven't found a Table or CodeUnit that allows retrieving webservice access keys. Is this even possible from an extension?
Thanks in advance
Not the answer I was hoping for but thanks for clearing this up.
I think this is not possible for security reasons.
Thanks for the response. I had not found that specific code unit yet so thanks again. Sadly the function cannot be used in an extension apparently as I get the following error:
The type or method 'GetWebServicesKey' cannot be used for 'Extension' development.AL(AL0296)
Did you check function "GetWebServicesKey" in codeunit 9801 - Identity Management?
Sohail Ahmed
999
YUN ZHU
934
Super User 2025 Season 1
Mansi Soni
612