on 09-09-2008 8:19 AM
Hi Experts,
i am new on CRM 2007 and i have a problem with the XML Structure of the Word Template.
First i built a Web Service Design Tool. Then i saw on the Testpage, that it works.
So i started the Document Templates and created a new Template. Object Type was BUS2000126 - CRM Business Activity. Web Service was my created and tested Web Service Tool.
As i opened the Word 2007 with the XML-Structure, i recognized, that there was something wrong.
The Responce on my Testpage from the Web Service Tool had the following structure:
response (test.types.p1.CrmostZlaWord5ReadResponse)
Output (test.types.p1.CrmostZla010RoszlaWord5001)
ZlaWord5 (test.types.p1.CrmostZla010Rosbtorder)
Administrativeheaderoforder (test.types.p1.CrmostZla010Rosbtorderhea001)
Partiesinvolvedofheader (test.types.p1.CrmostZla010Rosbtheaderpa001)
Allpartiesinvolved (test.types.p1.CrmostZla010Rosbtpartnera002[]) Displaying 3 elements of 3
element1 (test.types.p1.CrmostZla010Rosbtpartnera002)
Btpartneraddress (test.types.p1.CrmostZla010Rosbtpartnera001)
....
My Problem is now, that the XML-Structure got not that point "element1".
Instead of "element1" there is the point "item" in my XML-Structure in Word 2007.
I guess that is the Problem why i am not getting the fields of the Btpartneraddress filled in my Word.
Can anyone help me? Or put me in the right direction that i can change the XML?
Thanks for your help
André
Hello André!
You can not see field names or field values in MS Word?
Best regards,
Artur Litvinov.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi andré, I guess the issue is coming from the fact that you selected "AllPartiesInvolved" and that may contain any numbers of entries. So when you test your webservice, you put a key and then get a result for that key, and in that case you might get "element1" until "element3" for example if there was 3 partners involved in you activity.
But, when you design your template, you don't have a key at that moment, so in the Web Service structure, you have "items" which stands for all the possible entries you might retrieve at runtime. I guess you could use an index in your template to specify which item you need, but this is quite hasardeous, so i would be you, I would not design my web service to use "AllPartiesInvolved" but rather a specific Partner type like contact person for instance.
Regards,
Xavier
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.