Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

How to get the second company file name with user login using API in Business Central?

Posted on by 8
I am able to get all company file names with an admin login using the /companies/ API.
However, I am not able to get the second company file name with the user login.
How to get the second company file name using user login?
Categories:
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 71,565 Super User 2024 Season 2 on at
    How to get the second company file name with user login using API in Business Central?
    Hi, what is the company file name you mentioned? This field does not exist in the companies API.
    If it is an API permissions issue, please check the settings in Microsoft Entra Application Card.
     
    If it is a permission issue after the user logs in. This is not the same user as the API. Please check the permission settings of the User Card.
     
     
    Hope this helps.
    Thanks.
    ZHU
  • gdrenteria Profile Picture
    gdrenteria 10,951 Most Valuable Professional on at
    How to get the second company file name with user login using API in Business Central?
    Hi
    Does the user have permission in this second company? You can review the permissions that the user has in Bc.
    If you think the answer has helped you, please mark as verified.
    Best regards
    Gerardo

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,900 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,275 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans