Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

How to make the Canvas App id constant across environments?

Posted on by 115

Hi,

I have an embedded canvas app in my development enviroment. When I export this app as a package and import it in my test environment, the App ID is getting changed. Because of this, I need to manually change the App ID in the form where I am using it. Is there any way to export the app with the same ID?

Thanks,

Madhan

  • Suggested answer
    Jelle_v Profile Picture
    Jelle_v 45 on at
    RE: How to make the Canvas App id constant across environments?

    In my experience, when extending a modeldriven app with a canvas app, it is to provide some custom functionality. Therefore we start in our DEV organization. Creating the canvas app also in the DEV organization, causes the embedded canvas app to refer to the canvas appid of the DEV organization.

    Deploying both the modeldriven as the canvas app to another organization will generate new appids. When you test the embedded canvasapp, the initial canvas app is shown (from the dev environment) and seems fine.

    Since the canvas app is interacting back to the modeldriven app trough the "ModelDrivenFormIntegration", it updates my DEV organization.

    This is not the intended behaviour.

    I wrote a plugin that copies the correct appid(from a env variable) to a custom appid field on crate of my record. The canvasapp control has the appid bound to that appid field.

    It's not nice, it's a workaround, but it works.

  • RE: How to make the Canvas App id constant across environments?

    Hi Madhan,

    In practice, you shouldn't need to change the App Id in order for the embedded canvas app to work.

    Are you facing any specific error when you don't change it?

    Additionally, the user you are using when opening the form is a system admin? If not, can you check if the user has Organization level read permission to an entity called "Canvas App"?  

    Let me know the result of the testing and any feedback from this.

    Thank you.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans