Skip to main content
Solved

REST API: using a popup window after a Payment Action is invoked


Forum|alt.badge.img+2

Here’s the URL I tried with a POST method in Postman:

https://sandbox.com/AcumaticaERP/entity/Default/22.200.001/Payment/ActionName

 

Question: is there a way to pass a value to the popup window that is display when the Action is invoked?  maybe I also need to pass something so it can submit this value?

I tried to add the popup box field name but it’s not working...

{

    "entity": {

        "Type": {

            "value": "Payment"

        },

        "ReferenceNbr": {

            "value": "598035"

        },

        "PopupFieldName": {"value": "abc12345xyz"}

    },

    "parameters": {}

}

Best answer by bpgraves

I was able to find a solution by adding a parameter to the Payment web service endpoint action.  To find the parameter name, I Ctrl-Alt clicked on the text box of the popup window like this:

 

View original
Did this topic help you find an answer to your question?

Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+6

For some actions the popup fields are mapped to “parameters” of the action. 

If it’s not mapped, then probably not


Forum|alt.badge.img+2
  • Semi-Pro I
  • May 30, 2024
Dmitrii Naumov wrote:

For some actions the popup fields are mapped to “parameters” of the action. 

If it’s not mapped, then probably not

I tried to use a parameter but it didn’t change the Payment:

https://sandbox.com/AcumaticaERP/entity/Default/22.200.001/Payment/RecordCCPayment?$PopupFieldName=abc12345xyz

Here’s the body I passed:

{

    "entity": {

        "Type": {"value": "Payment"},

        "ReferenceNbr": {"value": "598035"},

        "PaymentRef": {"value": "abc12345xyz"}

    },

    "parameters": {

        "PopupFieldName": {"value": "abc12345xyz"}

    }

}


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • July 10, 2024

Hi @bpgraves were you able to find a solution? Thank you!


Forum|alt.badge.img+2
  • Semi-Pro I
  • August 21, 2024

I was able to find a solution by adding a parameter to the Payment web service endpoint action.  To find the parameter name, I Ctrl-Alt clicked on the text box of the popup window like this:

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings