Order Notes issue through API for version 3.3.3.6
-
- Posts: 94
- Joined: Mon Dec 28, 2009 3:43 pm
Order Notes issue through API for version 3.3.3.6
While trying to set values for the order notes, API is throwing "can not access member" exception after updating to the version 3.3.3.6. So the Notes properties are changed to Read Only in the new version?
-
- Posts: 91
- Joined: Wed Sep 10, 2008 3:33 pm
- Location: Raleigh, NC
- Contact:
Re: Order Notes issue through API for version 3.3.3.6
User and date are now read only - they will be stamped for you automatically. The note Text property is not read-only unless you do not have permission to the note.
Melissa McBerkowitz
VP of Product Strategy, SoftPro
VP of Product Strategy, SoftPro
-
- Posts: 94
- Joined: Mon Dec 28, 2009 3:43 pm
Re: Order Notes issue through API for version 3.3.3.6
The user has full access to proform module. Do I need to give extra permission for notes?
-
- Posts: 411
- Joined: Thu Sep 11, 2008 11:35 am
- Location: Raleigh, NC, USA
- Contact:
Re: Order Notes issue through API for version 3.3.3.6
Please provide your call stack and exception details.
Also, a sample code snippet that reproduces the issue would also be helpful.
Thanks!
Also, a sample code snippet that reproduces the issue would also be helpful.
Thanks!
John Morris
Sr. Software Architect
SoftPro
Sr. Software Architect
SoftPro
-
- Posts: 91
- Joined: Wed Sep 10, 2008 3:33 pm
- Location: Raleigh, NC
- Contact:
Re: Order Notes issue through API for version 3.3.3.6
The specific permission for notes is found in the SPAdmin Permissions tree under ProForm\Order\General\Note.
Melissa McBerkowitz
VP of Product Strategy, SoftPro
VP of Product Strategy, SoftPro
-
- Posts: 94
- Joined: Mon Dec 28, 2009 3:43 pm
Re: Order Notes issue through API for version 3.3.3.6
Here is the code and the error message.
Dim oOrderNote = order.CreateNew("Note")
oOrderNote.SetProperty("IsInternal", "False")
A first chance exception of type 'System.MemberAccessException' occurred in SoftPro.EntityModel.dll
Dim oOrderNote = order.CreateNew("Note")
oOrderNote.SetProperty("IsInternal", "False")
A first chance exception of type 'System.MemberAccessException' occurred in SoftPro.EntityModel.dll
-
- Posts: 411
- Joined: Thu Sep 11, 2008 11:35 am
- Location: Raleigh, NC, USA
- Contact:
Re: Order Notes issue through API for version 3.3.3.6
That is not the entire call stack.
Also, that property is a boolean data type, not a string. Try using False, not "False".
Also, that property is a boolean data type, not a string. Try using False, not "False".
John Morris
Sr. Software Architect
SoftPro
Sr. Software Architect
SoftPro
-
- Posts: 94
- Joined: Mon Dec 28, 2009 3:43 pm
Re: Order Notes issue through API for version 3.3.3.6
This piece of code was working in the previous version. I didn't get any more information in the call stack. Do you want to share my screen and have a look?
-
- Posts: 411
- Joined: Thu Sep 11, 2008 11:35 am
- Location: Raleigh, NC, USA
- Contact:
Re: Order Notes issue through API for version 3.3.3.6
I don't think a screen share is needed here. Did changing your code to a Boolean resolve the issue or not?
John Morris
Sr. Software Architect
SoftPro
Sr. Software Architect
SoftPro
-
- Posts: 94
- Joined: Mon Dec 28, 2009 3:43 pm
Re: Order Notes issue through API for version 3.3.3.6
No it didn't. Still getting the same error message.