Skip to main content
Solved

Creating a generic inquiry from the relations tab of the opportunities screen


Forum|alt.badge.img

Good day

 

I am creating a GI which will list all the lines and their columns from the relations tab for each opportunity record.

The following tables have been used for the GI: CRRelations, CR Contact, CR Opportunitiy, CR Leads, BAccount, So Sales Orders. 

I am having difficulty showing the status of each line, as this could come form a number of tables (i.e. sales order, leads, customer, etc.) I have tried using the ‘Target Type’ from the Relations table in an IF statement, but I don’t seem to be getting the name of the type ‘name’ correct.

Does anyone know how this can be achieved in possibly a simpler way?

Thank you.

Best answer by hkabiri

@suemackeown13  Regarding the status, the status should be derived from each target type corresponding table. Like Sales Order SOOrder.Status and…

Below is the mapping for Target entity Table name and Value on CRRelation.TargetType.

Hope this helps your scenario.

BAccount = "PX.Objects.CR.BAccount";
Customer = "PX.Objects.AR.Customer";
Employee = "PX.Objects.CR.CREmployee";
Vendor = "PX.Objects.AP.Vendor";
Lead = "PX.Objects.CR.CRLead";
Contact = "PX.Objects.CR.Contact";
CROpportunity = "PX.Objects.CR.CROpportunity";
CRCase = "PX.Objects.CR.CRCase";
SOOrder = "PX.Objects.SO.SOOrder";
POOrder = "PX.Objects.PO.POOrder";
APInvoice = "PX.Objects.AP.APInvoice";
ARInvoice = "PX.Objects.AR.ARInvoice";
EPExpenseClaimDetails = "PX.Objects.EP.EPExpenseClaimDetails";
CRCampaign = "PX.Objects.CR.CRCampaign";
CRQuote = "PX.Objects.CR.CRQuote";

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

2 replies

hkabiri
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Support Team
  • 222 replies
  • Answer
  • March 10, 2025

@suemackeown13  Regarding the status, the status should be derived from each target type corresponding table. Like Sales Order SOOrder.Status and…

Below is the mapping for Target entity Table name and Value on CRRelation.TargetType.

Hope this helps your scenario.

BAccount = "PX.Objects.CR.BAccount";
Customer = "PX.Objects.AR.Customer";
Employee = "PX.Objects.CR.CREmployee";
Vendor = "PX.Objects.AP.Vendor";
Lead = "PX.Objects.CR.CRLead";
Contact = "PX.Objects.CR.Contact";
CROpportunity = "PX.Objects.CR.CROpportunity";
CRCase = "PX.Objects.CR.CRCase";
SOOrder = "PX.Objects.SO.SOOrder";
POOrder = "PX.Objects.PO.POOrder";
APInvoice = "PX.Objects.AP.APInvoice";
ARInvoice = "PX.Objects.AR.ARInvoice";
EPExpenseClaimDetails = "PX.Objects.EP.EPExpenseClaimDetails";
CRCampaign = "PX.Objects.CR.CRCampaign";
CRQuote = "PX.Objects.CR.CRQuote";


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 40 replies
  • March 17, 2025

Thank you.

I have the status for each target type, but need to show this as one column in the GI, rather than having separate columns (same as that shown on the Relations tab of an opportunity). When trying to use an IIF statement only get the status code rather than the ‘name’ of the status.(i.e. ‘n’ rather than open)

 


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