web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

How to run post "packing slip generate" by Execute Action in Power Automate?

(0) ShareShare
ReportReport
Posted on by 843

I would like to be able to run this method with the parameter "Delivery now" from Power Automate and Executon action connector?

I found I need to work with a data entity, in this case = SalesOrderLineV2Entity, and use SysODataAction.

However, I can't find a method that I can refer to.. Could anyone suggest how to do this?

Sales order view:

020033268.png

pick and pack form view:

567821.png

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    300,915 Super User 2025 Season 2 on at

    HI Shooowtek,

    Out of the box, there is no public action on a data entity to post a packing slip. At least, I haven't seen it myself. There are several parameters required to be able to post the correct quantity on the correct date. If you look at the form for the packing slip posting, which you partly shared as screenshot, you can see what all is related to do the correct posting.

    If you need something for particular scenarios, you can develop your own data entity action. You can read more about actions on my blog: Let your Operations Flow – Part 8 - Dynamicspedia

  • Shooowtek Profile Picture
    843 on at

    Hello Andre,

    Thank you for your reply. 

    I've looked over your suggestion, but I'm still a little confused about the topic.

    Could you please tell me which data entity to use or which table I should use to create a custom one?

  • André Arnaud de Calavon Profile Picture
    300,915 Super User 2025 Season 2 on at

    Hi Shooowtek,

    I think, you should think about the whole design yourself. The data entity action should fill all tables and fields currently available on the Post packing slip form. Then it can be posted. If you have all line information in the field 'Deliver now', and you want to use the current date as posting date, it would be possible to create a data entity using the table SalesTable and then write your own 'execute action' method with all logic.

  • Shooowtek Profile Picture
    843 on at

    Thanks Andre,

    I wrote some code and unfortunately my method is not available in the Execute action connector in PA. What could be the reason?

    public class mySalesTableEntity extends common
    {
        [SysODataAction("Post Packing Slip", true)]
        public void postPackingSlip(SalesId _salesId)
        {
            SalesTable salesTable;
            CustPackingSlipJour custPackingSlipJour;
            TransDate packingSlipDate =  DateTimeUtil::getToday(DateTimeUtil::getUserPreferredTimeZone());
            SalesFormLetter_PackingSlip salesFormLetter_PackingSlip;
    
            ttsbegin;
            salesTable = SalesTable::find(_salesId);
    
            if(salesTable && salesTable.SalesStatus == SalesStatus::Backorder)
            {
                salesFormLetter_PackingSlip = SalesFormLetter::construct(DocumentStatus::PackingSlip);
    
                salesFormLetter_PackingSlip.update(salesTable, packingSlipDate, SalesUpdate::DeliverNow, AccountOrder::None, false, false);
            }
    
            if(salesFormLetter_PackingSlip.parmJournalRecord().TableId == tableNum(CustPackingSlipJour))
            {
                custPackingSlipJour = salesFormLetter_PackingSlip.parmJournalRecord();
            }
            ttscommit;
        }
    
    }

    7704363.png

  • André Arnaud de Calavon Profile Picture
    300,915 Super User 2025 Season 2 on at

    Hi Shooowtek,

    Did you fully build you model (not only the solution/project) and completed a database sync?

  • Alex VN Profile Picture
    1,994 on at

    Hi,

    Have you try to test the Entity odata endpoint?

    [finopsURL]/data/mySalesTableEntity/Microsoft.Dynamics.DataEntities.postPackingSlip.

    Please also try to restart IIS, do entity refresh to update metadata and ensure it is available on entity list.

    Regards,

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans