Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Commerce forum / Business logic to appr...
Commerce forum
Suggested answer

Business logic to approve retail kit in the Retail kit component data entity.

Posted on by 517

Hi,

Our end users are manually approving retail kits after it gets created in D365FO using DIXF import.

I found is that if we can call table method RetailKit::Approvekit()  in the RetailKitComponent data entity somehow , the Retail kit will be approved with it's required product configuration created along with it.

So i am basically looking for a place in the RetailKitComponent data entity where i can call RetailKit::ApproveKit() method for each record that is getting imported. 

Can Anyone please suggest where should I put above call?

Thanks,

Vikky

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 288,459 Super User on at
    RE: Business logic to approve retail kit in the Retail kit component data entity.

    Moved to the Dynamics 365 Commerce forum.

  • VRD Profile Picture
    VRD 517 on at
    RE: Business logic to approve retail kit in the Retail kit component data entity.

    Hi Sukrut,

    Thanks for your reply.  Our users are importing kits in the bulk for the whole year in one go. They do it twice a  year.

    We have automated every process by DMF except this last step where kit needs to be approved which also creates product configuration for the kits.

    It would be good to approve the kit as soon as it gets created instead of looping through. but i just wonder where do i place it?

    I will try what Nuno mentioned and see how it goes.

    Thanks.

    ~ Vikky

  • Suggested answer
    nunomaia Profile Picture
    nunomaia 10,684 Super User on at
    RE: Business logic to approve retail kit in the Retail kit component data entity.

    Can't you call that method in a extension on entity data source insert ?

  • Sukrut Parab Profile Picture
    Sukrut Parab 71,643 Moderator on at
    RE: Business logic to approve retail kit in the Retail kit component data entity.

    How may kits do you import in one go ? Is it a recurring  process or one time ?  PosttargetProcess method is called at the very end when all records are processed specific to  data project task, so either you you loop through all the records  and call approve process or write a separate  batch process  to approve those.

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,459 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,783 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans