I am trying to filter the catalog item based on logged in customer business account. How do i get the logged in customer business account value in acumatica portal?
Regards,
R.Muralidharan
As you've found out, PXAccess.GetUserID() allows you to get this information, but you can also use the AccessInfo DAC in BQL queries:
Current<AccessInfo.userID>
Current<AccessInfo.userName>
I have used Base.currentCustomer.BAccountID and it works fine
Related
I'm currently building an integration with Netsuite using the Suitetalk REST API. I would like to retrieve the role of each contact associated with a customer to find the Primary and Operational contacts of the customer.
I have tried querying the customer endpoint:
record/v1/customer/ {customerId} /contact/ {contactId} /contactrole
This query returns Role id 14 which is 'Customer Center' for all customer contact records. This is obviously incorrect as this information is returned for contacts tagged with different roles when I check them via the UI.
I have also tried using Suiteql using the query endpoint with the similar results.
Is the query incorrect or should I be using a different endpoint? I have been stuck for days, so I would appreciate any suggestion.
A long comment. Hopefully it helps focus your search for a solution.
Contact Roles is the subrecord for contacts who have login access to a customer's account. The role listed there is the access role. Customer Center is the default access role in a vanilla Netsuite account.
The Records Catalog has contactList as the joining table for contact to company. I don't see any mention of role there that would correspond to contactrole in the records browser so it appears some documenation is missing.
You'll likely have to play with the SuiteQL queries feature to get this.
See Executing SuiteQL Queries Through REST Web Services in the NS help.
with suiteql you can get primary contact with this
{ "q": "select cus.companyname,cus.contact,cont.entityid from customer cus left outer join contact cont on cus.contact=cont.id where cus.id=<<id of ur customer>>"}
I am trying to add an Event to Acumatica B2B catalog through customization and it is looking for business account attached to admin login.
Is the business account must for customization?
Associated business account check is done in constructor of the InventoryLineMaint Graph linked to Catalog form (SP700000) page and if not found; exception is raised which is correct by design.
How to assign a business account to user in acumatica? has step by step instructions to customize Catalog form (SP700000) on Acumatica Portal site.
i am trying to create netsuite employee identity management application in .Net, i have found their CRM Sample application that adds, updates, deletes & search customer, i need to implement function like add employee, delete employee, get all employee, update employee using their web service.
thanks in advance
Hope these links would help.
http://tellsaqib.github.com/NSPHP-Doc/dc/d5c/class_employee.html
http://tellsaqib.github.com/NSPHP-Doc/da/d81/class_add_request.html
I work on a web application that uses eConnect to interface with Dynamics GP. Specifically, when orders are processed through our online store we submit invoices into GP using eConnect.
Some of our customers are on account and their account balance is maintained in GP. We'd like to be able to determine a customer's current account balance at the time of purchase so that we can deny the purchase if it would put their account in the red.
Is there a way, using eConnect, to determine a customer's current account balance? I've searched high and low online without much luck.
Thanks!
Although I cannot recommend a way via eConnect, you can access the customer balance via SQL by querying the RM00103 table.
SELECT CUSTBLNC as CustomerBalance
FROM RM00103
WHERE CUSTNMBR = #CustomerNo
#Is there a way, using eConnect, to determine a customer's current account balance?
No, there is no eConnect to determine customer current balance.
correct customer number field is CUSTNMBR
SELECT CUSTBLNC as CustomerBalance
FROM RM00103
WHERE CUSTNMBR = 'XYZ'
I have created a custom membership provider for a SharePoint application but would like to populate the Title and Department columns for the MembershipUsers that are displayed with data from my user repository.
Is this possible? How can it be done?
I don't see anything in the System.Web.Security.MembershipUser class that could store this information. How does the Windows AD MembershipProvider have a different Display Name than the Account Name? Are some of these values coming from someplace else?
What happens in the AD is that, SharePoint runs the User Profile Sync Job that will pull all the required information from AD and updated the SharePoint UserProfile DB which In turn pushes to Each of the Site. Whereas in the case of the Custom Membership we don't have a direct option to update the Profile Information.
One method you can do is to update those information using code.There are two options you can update the User Profile information in the SSP so that it will be displayed in all the Site Collection or to Update the SPWeb.SiteUserInfo List. Please refer these link1 , link2 on how to do that. In case you want to update in SiteUserInfo list it is just another list just search for Item based on the user account name and update that item.