AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Everything Else
Busniess Event to a...
 
Notifications
Clear all

Questions Busniess Event to add an SO line

 
Everything Else
Last Post by Tim Rodman 1 year ago
5 Posts
3 Users
2 Reactions
1,108 Views
RSS
Bob Allande
Posts: 7
 Bob Allande
Topic starter
June 10, 2024 8:38 pm
(@ballande)
Eminent Member
Joined: 2 years ago

Hi,

I'm trying to add a Business Event to add a SO Line when a Payment Method is CC (Credit Card).
I have tried reading all online documentation, including a substandard video on Acumatica's site itself, and other online video tutorials, but am not getting what I need to do.  

I would appreciate if someone could walk through the steps, and give an example.   I feel I am close, but can't get it to add the line.

In history it shows it running, but nothing is ever added.   I am sure I am missing something basic - 1 step somewhere.   I wish the documentation was better.  It is pretty bare bones.

I code, and do customizations, but have never used the Business Events feature and trying to learn. 

Appreciate any feedback.


Topic Tags
business events
4 Replies
alconroy
Posts: 32
 alconroy
June 13, 2024 4:10 pm
(@alconroy)
Eminent Member
Joined: 4 years ago

You need to have all the details you want to import in the GI you are using for the business event, and also there needs to be a <Line Number> -1 line in your import, post your GI and Import scenario if you wish 


Reply
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
June 16, 2024 2:07 pm
(@timrodman)
Famed Member
Joined: 10 years ago

A Business Event might not be the best idea if you are entering the Payment Method on the Sales Order screen. The reason is that a Business Event gets triggered, but hands it off to a separate message queue to do the work which could take a few seconds to happen. Once it adds the line, you will then have a conflict with saving the Sales Order that you're working on because a previous save already happened. 

The Workflow Engine might be better for this. It can add the line in real time while you're working on the Sales Order.


Reply
Bob Allande
 Bob Allande
(@ballande)
Joined: 2 years ago

Eminent Member
Posts: 7
June 23, 2024 9:06 pm
Reply toTim RodmanTim Rodman

@timrodman Thank you.

I actually got it working via Business Event.   Here ius what I did in case anyone needs something similar.

  1. Via Customization, I added a UDF that stores the CC Fee %.  It is visible to certain users so they can change when needed.
  2. Created a GI that lists the most most recent Sales Order with Credit Card as a payment type, and other needed fields.
  3. Created Business event
    1. Type:   Triggered by Event.
    2. Screen Name:  The GI screen name from #1.
    3. Trigger Condition: Record Inserted.
    4. Subscriber:   Type:  Import Scenario.
    5. Create Subscriber:  Import Scenario.  An Import that uses the GI from #1 as the Data Provider, and inserts a line as desired.
    6. Field to Track:  Order Nbr

Here are a couple screenshots to help. 

GI Results Grid.  

image

Data Provider (Sorry, the screen names may be confusing... I was changing things as I went.   I will clean up fields and update screenshots)

image
image

Import

image

Business Event

image

 

image
image

Sales Order (I entered the first line, then saved.  The 2nd line was added by the BE)

image

Reply
Dianne A and Anne Trockman reacted
Tim Rodman
 Tim Rodman
Admin
(@timrodman)
Joined: 10 years ago

Famed Member
Posts: 3193
June 23, 2024 9:51 pm
Reply toBob AllandeBob Allande
Tim Rodman

@ballande Nice! Thank you so much for sharing.


Reply
Forum Jump:
  Previous Topic
Next Topic  
Related Topics
  • Sequential Business Events
    2 years ago
  • Automated email on Failed Import Scenario
    3 years ago
  • Business Event sending to each sales person
    3 years ago
  • Business Events with GI to Excel without creating a new report
    5 years ago
  • Business Event trigger -To import the scenario for Transfer entry (With allocation details)
    5 years ago
Topic Tags:  business events (10) ,
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 46 Online
  • 2,389 Members
Our newest member: Dan Hunting
Latest Post: Generic Inquiry Screenid changes to ScreenId=00000000
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

  • Julie Baker
Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2025 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×