Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signer.CustomFields is not updated when calling update recipients method. #307

Open
sameedaris opened this issue Nov 15, 2020 · 17 comments
Open
Labels
bug EC-2944 Envelopes::Update and UpdateRecipients question responded

Comments

@sameedaris
Copy link

sameedaris commented Nov 15, 2020

I am updating email of the recipient using C# docusign SDK. update Email is working fine.I am calling envelopesApi.UpdateRecipients method beside update email I want to Update custom fields of that particular signer. It is not updating custom fields with new values that I am providing value by setting singer.CustomFields Property. Please suggest what to do

@ivdinkovds
Copy link

@sameedaris please if you can clarify your issue. Is your issue updating recipient email or updating custom fields values?
As well will be nice if you can provide code snippet

@ivdinkovds
Copy link

ivdinkovds commented Nov 23, 2020

@sameedaris, If your aim is to update only the email you do not have to edit/add custom fields for this user.

var recipinetList = envelopesApi.ListRecipients(accountId, envelopeId); Signer theOne = recipinetList.Signers.Where(s=>s.Email.Contains("something")).FirstOrDefault(); theOne.Email = "new email"; Recipients recipients = new Recipients { Signers = new List<Signer> { theOne } }; EnvelopesApi.UpdateRecipientsOptions updateRecipientsOptions = new EnvelopesApi.UpdateRecipientsOptions(); updateRecipientsOptions.resendEnvelope = "true"; // in case of in-flight envelope var update = envelopesApi.UpdateRecipients(accountId,envelopeId,recipients,updateRecipientsOptions);

@sameedaris
Copy link
Author

sameedaris commented Nov 23, 2020

@sameedaris, If your aim is to update only the email you do not have to edit/add custom fields for this user.

var recipinetList = envelopesApi.ListRecipients(accountId, envelopeId); Signer theOne = recipinetList.Signers.Where(s=>s.Email.Contains("something")).FirstOrDefault(); theOne.Email = "new email"; Recipients recipients = new Recipients { Signers = new List<Signer> { theOne } }; EnvelopesApi.UpdateRecipientsOptions updateRecipientsOptions = new EnvelopesApi.UpdateRecipientsOptions(); updateRecipientsOptions.resendEnvelope = "true"; // in case of in-flight envelope var update = envelopesApi.UpdateRecipients(accountId,envelopeId,recipients,updateRecipientsOptions);

Hello,
@ivdinkovds Sorry for late reply. I am facing issue in custom fields. I want to update custom fields for particular recipient.

@ivdinkovds
Copy link

ivdinkovds commented Nov 23, 2020

@sameedaris Any custom tabs once assigned to signer are accessible just as normal tabs associated with him. To get all signer tabs you can add ListRecipientOptions with option to include tags. This should return Tabs object containing list of all tabs assosiated with him
`

        EnvelopesApi.ListRecipientsOptions listRecipientsOptions = new EnvelopesApi.ListRecipientsOptions();
        listRecipientsOptions.includeTabs = "true";

        var recipinetList = envelopesApi.ListRecipients(accountId, envelopeId, listRecipientsOptions);
        var signerTabs = recipinetList.Signers.Where(s => s.Name.Equals("something")).FirstOrDefault().Tabs;

`
You can change the value and update the Signer object

@sameedaris
Copy link
Author

sameedaris commented Nov 23, 2020

@sameedaris Any custom tabs once assigned to signer are accessible just as normal tabs associated with him. To get all signer tabs you can add ListRecipientOptions with option to include tags. This should return Tabs object containing list of all tabs assosiated with him
`

        EnvelopesApi.ListRecipientsOptions listRecipientsOptions = new EnvelopesApi.ListRecipientsOptions();
        listRecipientsOptions.includeTabs = "true";

        var recipinetList = envelopesApi.ListRecipients(accountId, envelopeId, listRecipientsOptions);
        var signerTabs = recipinetList.Signers.Where(s => s.Name.Equals("something")).FirstOrDefault().Tabs;

`
You can change the value and update the Signer object

I need to update CustomFields for Signer not Tabs. Here is Code for setting custom fields . please guide me how to update custom fields.

 var singer = new Signer() { RecipientId = input.OldEnvelopeRecipientID };
                        if (string.IsNullOrWhiteSpace(eEmail))
                        {
                            singer.SigningGroupId = NewgroupdID;
                            singer.Name = groupName;
                        }
                        else
                        {
                            singer.Email = NewEmail;
                            singer.Name = Name;
                        }
// this field is not updating when calling update reciepents method
                        singer.CustomFields = DigitalCustomFieldHelper.GenerateCustomFields(customFieldsModel);
                        
                        recipeints.Signers.Add(singer);
EnvelopesApi envelopesApi = new EnvelopesApi(ApiClient.Configuration);
               
 var result = envelopesApi.UpdateRecipients(AccountID, envelopeId, recipients: recipients,
                  new EnvelopesApi.UpdateRecipientsOptions() { resendEnvelope = resend.ToString() });

@ivdinkovds
Copy link

CustomFields and Tabs/Tags are essentially the same. You can convert any filed ( text, date ) and save it as CutomField.
The code above will allow you to update any custom fields assigned to the signer

@sameedaris
Copy link
Author

Thanks @ivdinkovds . You mean to say if my code loads all tabs for particular signer it should have custom field values too. I will check it for sure. but the problem is that I don't want to make Get recipients method call because of DocuSign violation rules. I just want to make update call with respective ID.

@sameedaris
Copy link
Author

sameedaris commented Nov 23, 2020

Hi @ivdinkovds , I ran a test and custom fields are separate property in C# SDK. They are not populated inside tabs property, Please check screenshots.
image
image

@ivdinkovds ivdinkovds added bug and removed bug labels Nov 24, 2020
@ivdinkovds
Copy link

@sameedaris Thanks for finding this out. Most of the time our customers by signer custom fields reference the document custom fields assigned to particular signer which are found under Tags. My apologies. In this case you are correct. We tested it and confirmed, signer custom fields update functionality does not appear to work. There is a bug case created now

@sameedaris
Copy link
Author

Thanks a lot.

@ivdinkovds ivdinkovds added the EC-2944 Envelopes::Update and UpdateRecipients label Nov 24, 2020
@sameedaris
Copy link
Author

@ivdinkovds Could you please give us rough Idea when this should be fixed ? Our product delivery is dependent on this.

@ivdinkovds
Copy link

ivdinkovds commented Nov 25, 2020

@sameedaris Update: It has high priority but It is really up to the engineering team to decide on delivery and deployment.

@sameedaris
Copy link
Author

OK thanks .

@LarryKlugerDS
Copy link
Contributor

Hi @sameedaris , unfortunately, from my experience, it will probably take a long time for this type of issue to be fixed.
In the meantime, I suggest that you store/update your metadata in a different spot within the Envelope object. Perhaps as an envelope custom field.

@sameedaris
Copy link
Author

Thanks @LarryKlugerDS .

@sameedaris
Copy link
Author

@LarryKlugerDS Boss any update on this? Thanks in advance.

@sameedaris
Copy link
Author

Hello,
Guys please let us if there is any update on this? If we could some released date for this issue We would appreciate it.
Thanks Again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug EC-2944 Envelopes::Update and UpdateRecipients question responded
Projects
None yet
Development

No branches or pull requests

3 participants