Hi!
Can anyone help me.
I successfully installed BN, and tested some of its templates, and worked perfectly fine.
But I tried to create the sample from the Application Designer's Guide on which a notification will be sent if a customer has been blocked,
but BN does not sent any email.
I checked the code for the trigger in OnModify event and it's working fine.
Thanks
0
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I think the problem is the XMLPort, I found this error in the Event Log:
Unknown error!
System.Xml.XmlException: There are multiple root elements. Line 8, position 2.
at System.Xml.XmlTextReader.ParseRoot()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlValidatingReader.ReadNoCollectTextToken()
at System.Xml.XmlValidatingReader.Read()
at System.Xml.XmlLoader.LoadCurrentNode()
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.LoadXml(String xml)
at Microsoft.BusinessSolutions.Integration.MessageBusAgent.Agent.PublishEvents()
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
TagName: Customer
TagType: Element
SourceType: Table
DataSource: Customer(Customer)
Under Customer element (indented) are:
TagName: MBS_Navision_URL
TagType: Attribute
SourceType: Text
DataSource: <MBS_Navision_URL>
TagName: No
TagType: Element
SourceType: Table
DataSource: Customer::No.
TagName: Name
TagType: Element
SourceType: Table
DataSource: Customer::Name
TagName: Blocked
TagType: Element
SourceType: Table
DataSource: Customer::Blocked
In the C/AL Editor I have this line of code(below) on OnBeforePassvariable function:
MBS_Navision_URL := BNManagement.CreatePurchaseOrderURL(Customer."No.");
Because now you have this output (simplified):
and it means multiple root elements...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
An instruction or sample to do this would be highly appreciated.
[-o< [-o<
Thanks
But I got no email from BN when I tried to blocked a customer. #-o #-o ](*,)
Do I need to add this notification I made to Business Notification Worksheet which requires a report?
Thanks
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
where I cannot add codes in HasBeenBlocked event.
Thanks