Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Accessing the web service access key of a user from assisted setup in AL extension

(0) ShareShare
ReportReport
Posted on by 35

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?

  pastedimage1576574822364v1.png

Thanks in advance

  • Erik S Profile Picture
    35 on at
    RE: Accessing the web service access key of a user from assisted setup in AL extension

    Not the answer I was hoping for but thanks for clearing this up.

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: Accessing the web service access key of a user from assisted setup in AL extension

    I think this is not possible for security reasons.

  • Erik S Profile Picture
    35 on at
    RE: Accessing the web service access key of a user from assisted setup in AL extension

    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)

  • Mohana Yadav Profile Picture
    60,232 Super User 2025 Season 1 on at
    RE: Accessing the web service access key of a user from assisted setup in AL extension

    Did you check function "GetWebServicesKey" in codeunit 9801 - Identity Management?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 999

#2
YUN ZHU Profile Picture

YUN ZHU 934 Super User 2025 Season 1

#3
Mansi Soni Profile Picture

Mansi Soni 612

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans