Multi-Company Function - Help Needed

I have a function I built out in one of our companies and now I want to use it at all of our companies. I went into the Security tab and ensured all companies are authorized.

When calling this function from a customization via button click in another company it goes through the paces, lots of message boxes that show data handling and callouts, but the function doesn’t appear to do anything.

When running the function through the Swagger page, it works as intended. Any ideas what I may be missing?

Found the issue. In the connection string for rest it lists the specific company it was working in. I need to make that a variable and plug it back in based on the current company the user is in when clicking the button.

2 Likes