Skip to main content

Notifications

Announcements

No record found.

Business Central forum
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?
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 64,563 Super User 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 5,292 Super User 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

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,584 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,864 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans