Skip to main content
Solved

Multiple documents with Auto-Place not using DocumentId

  • April 17, 2025
  • 3 replies
  • 74 views

Forum|alt.badge.img+1

I am creating an envelope using the API and adding multiple documents and using Auto-Place to add the “Sign Here” tabs. The anchor string is the same on both documents but I would like the tabs to only place on the document specified by the “DocumentId” on the tab. This does not seem to work.

Here is example code using the C# SDK:
Is it expected that the SignHere would be added to both documents? If so, how would I prevent that?

	var envelope = new EnvelopeDefinition();

Document doc1 = new Document
{
DocumentBase64 = doc1DocxBytesBase64,
Name = "docusign-test",
FileExtension = "docx",
DocumentId = "1",
};

Document doc2 = new Document
{
DocumentBase64 = doc2DocxBytesBase64,
Name = "docusign-test2",
FileExtension = "docx",
DocumentId = "2",
};

envelope.Documents = new List<Document> { doc1, doc2 };

var signer = new Signer();
signer.Name = "Test Name";
signer.Email = "test@test.com";
signer.RecipientId = "1";


SignHere signHere1 = new SignHere
{
AnchorString = "\\s1\\",
DocumentId = "1"
};

Tabs signer1Tabs = new Tabs
{
SignHereTabs = new List<SignHere> { signHere1 },
};

signer.Tabs = signer1Tabs;

var recipients = new Recipients();
recipients.Signers = [signer];
envelope.Recipients = recipients;


envelope.Status = "sent";
envelope.EmailSubject = "This is a test";


envelopeApi.CreateEnvelope(AccountId, envelope);

 

Best answer by Sean.Boyle

Hi,

Yes that is the case

3 replies

Forum|alt.badge.img+4
  • Docusign Employee
  • April 22, 2025

Hi,

If you have the same anchor tags across the envelope, this will cause the duplicates. If you don’t want duplucates then you should use unique anchor tags on each document.

The following article will explain that:

How to fix duplicate anchor tags


Forum|alt.badge.img+1
  • Author
  • Newcomer
  • April 22, 2025

So the DocumentId on the SignHere tab doesn’t mean anything?


Forum|alt.badge.img+4
  • Docusign Employee
  • Answer
  • April 22, 2025

Hi,

Yes that is the case