Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Suggested answer

Has anyone tried creating a custom data action to call an external service/API and get an error "sanitizedActionPath is not defined"?

(0) ShareShare
ReportReport
Posted on by 5

I tried following the guide in the document "Dynamics 365 E-Commerce Developer Extensibility Getting Started Guide" topic #12 discussed in https://community.dynamics.com/365/b/techtalks/posts/dynamics-365-commerce-how-to-extend-dynamics-365-commerce-january-22-2020,

I am getting an error

pastedimage1590637285663v1.png

 Has anyone experienced this?

  • Suggested answer
    am24 Profile Picture
    5 on at
    RE: Has anyone tried creating a custom data action to call an external service/API and get an error "sanitizedActionPath is not defined"?

    This has been resolved.

    Fix is to make the createObservableDataAction an export default instead of export const.

    Creating a new data action will have this createObservableDataAction just like in the video guide.

    pastedimage1594106285958v1.png

    Change it to:

    export default Msdyn365.createObservableDataAction({

         action: <Msdyn365.IAction<IGetProductReviewsData>>action,

         input: createInput

    });

  • Community Member Profile Picture
    on at
    RE: Has anyone tried creating a custom data action to call an external service/API and get an error "sanitizedActionPath is not defined"?

    I am facing the same issue, could you get any resolution to it which you share?

  • Xusheng Profile Picture
    on at
    RE: Has anyone tried creating a custom data action to call an external service/API and get an error "sanitizedActionPath is not defined"?

    Hi,

    Since this is a request on customization, I am leaving this thread open for community members to respond to your query.

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Zain Mehmood Profile Picture

Zain Mehmood 462 Moderator

#2
Danny Bilodeau Profile Picture

Danny Bilodeau 156 Moderator

#3
Laurens vd Tang Profile Picture

Laurens vd Tang 120 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans