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

Document requires at least one signing party #7

Open
Sreevalli opened this issue May 29, 2013 · 0 comments
Open

Document requires at least one signing party #7

Sreevalli opened this issue May 29, 2013 · 0 comments

Comments

@Sreevalli
Copy link

Hi,
I'm using Below code to send my existing template, that template is having one text field and 1 signature field. i tried for other templates also but getting same issue. did i missed any parameters?? can you please help me.

public static void prepackage_and_send_templates(string[] templateGUIDs)
{

        XDocument response;

        // Prepackge a Template to prepare it for sending, sets a Callback URL so we can get listen for callbacks 
        //  when the Documenet gets created, viewed, and completed (all signers signed)
        string guid = rightSignatureApi.PrepackageTemplate(templateGUIDs, "http://127.0.0.1:8888"); // my template guid is "a_2764708_260803f29d634c6880cbc6af6739adad"
        Console.WriteLine("got GUID:" + guid);


        // Filling in the info for Document Roles
        Dictionary<string, RightSignatureAPI.RoleUser> roles = new Dictionary<string, RightSignatureAPI.RoleUser>();
        roles.Add("Document Sender", new RightSignatureAPI.RoleUser("Bryan Currier", "[email protected]", true));
        roles.Add("Project Manager", new RightSignatureAPI.RoleUser("Sreevalli Balleda", "[email protected]", true));

        // Send document with fields filled out
     //   (guid, subject, roles, mergeFields, tags, description, callbackURL, expires_in)
        //response = rightSignatureApi.SendDocument(guid, "Test Development", roles, mergeFields, tags, "Please sign this document", null, 2);//"http://127.0.0.1:3000"
        response = rightSignatureApi.SendDocument(guid, "Test Development", roles, null, null, "Please sign this document", null, 2);//"http://127.0.0.1:3000"
        Console.WriteLine("Response received is:\n" + response.ToString());
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant