Forum Discussion
It’s a bit confusing. repeatedElement it’s obviously the InvoiceLines object, but in your output sample, the objects contain only one key value pair:
{
"key": {
"@attr": "attr1",
"$": "key1"
},
"value": "value1"
}
While in the incoming data, one object contains four fields:
{
"LineNumber": "1",
"LineExtAmtExclTax": "7000",
"Employee": "Marlon Mangila",
"LineTax": "700"
}
Quickly use those fields to manually populate this output object from above, just as a reference.
Hi @bojanvelevski ,
Just to clarify here are input & output messages:
input:
[
{
"Header": {
"InvoiceNumber": "PRP100418",
"InvoiceDate": "29/04/2022",
"PaymentTermsDescription": "Net 7 days",
"CustomerRef": "C1381"
},
"InvoiceLines": [
{
"LineNumber": "1",
"LineExtAmtExclTax": "7000",
"Employee": "Marlon Mangila",
"LineTax": "700"
},
{
"LineNumber": "2",
"LineExtAmtExclTax": "800",
"Employee": "Elin Joe",
"LineTax": "150"
}
]
}
]
output:
{
"Invoice": {
"InvoiceNumber": {
"@attributeName": "PRP100418",
"$": "C1381"
},
"InvoiceLines": [
{
"LineNumber": {
"@LineExtAmtExclTax": "7000",
"$": "1"
},
"value": "Marlon Mangila"
},
{
"LineNumber": {
"@LineExtAmtExclTax": "8000",
"$": "2"
},
"value": "Elin Joe"
}
]
}
}
Looking forward to your suggestion.
Regards,
Deepak.
- Rod7 years agoNew Contributor
Hi Vish
We are creating a new user object successfully but are having an issue with giving this new account a password. Can you shed any light on how to do this?
- vish7 years agoFormer Employee
Hi @Rod, It has been a long time since I looked at this 🙂 I don’t remember exactly but I think I’ve always used useraccountcontrol 544 to force a password change on 1st login. I’d suggest starting here: New-ADUser | Microsoft Docs and make sure you are setting the right attributes like useraccountpassword and also ensure you have the right user account control value (list of values here: All Codes (by Rajnish Bhatia): Active Directory userAccountControl Values)
- tae_kim7 years agoNew Contributor
I’m attempting to create user with a password as well but the userPassword field doesn’t seem to populate into it. Is userPassword not something that is accepted as a key attribute in the Active Directory snap in? It doesn’t give me an error when passing values in that attribute, but it doesn’t actually set any password. I assume the underlying connection is ldap calls and not using any dot net.
Also I’m trying to find out how to pass in multiple array values.
Also lastly, i want to get the object guid back, but it seems the snap-in pre-interprets the value by decoding with base 64 but provides it as a string (which is unusable) vs the byte array or even better decoded to bytes and properly providing the guid as the string value
- Rudradip4 years agoNew Contributor II
Hi @tae.kim and @Rod were you able to solve the issue ? My use case is actually same : userpassword needs to be set and user needs to be forced to change it at the time of first login?
- Rod4 years agoNew Contributor
OFFICIAL
Hi Rudradip
Post creation of the user account we used an Active Directory Update Entry snap