Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Can I upload webresources from c# using the rest api?

Posted on by 225

Is it possible to upload a web resource (html, js, css++) using C# and CrmServiceClient from Microsoft.Xrm.Tooling.Connector library?

Usually I go thru Solution -> Web Resource and add them there. But is another way? We have an Angular app that is running inside Dynamics. The JS files can be bundled and minified, but there are several assets like images, fonts and so on that needs to be added (very) manually.

*This post is locked for comments

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Can I upload webresources from c# using the rest api?

    Hi

    If you use post build event to copy the minified files to Package project, you can deploy this from Visual Studio and I would recommend you try this with the following developer toolkit

    marketplace.visualstudio.com/items

    The toolkit also supports source controlling customisation so its worth having a look as well.

  • Suggested answer
    Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: Can I upload webresources from c# using the rest api?

    Intresting...

    Have a look here : docs.microsoft.com/.../gg327924(v=crm.8)  

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans