2014-11-25 88 views
0

我們如何從docusign設置docusign信封的提醒和到期設置?我們如何從docusign rest api信封設置docusign信封的提醒和過期設置?

JSONGenerator gen = JSON.createGenerator(true); 
/start notifications 
     gen.writeFieldName('notifications');  
     gen.writeStartObject(); 
     gen.writeStringField('useAccountDefaults', 'true'); 
     //start reminders 
     gen.writeFieldName('reminders');   
     gen.writeStartObject(); 
     gen.writeObjectField('reminderEnabled', 'true'); 
     gen.writeObjectField('reminderDelay', '1'); 
     gen.writeObjectField('reminderFrequency', '1');  
     gen.writeEndObject();  
     //end reminders 

     //start expiration  
     gen.writeFieldName('expirations');    
     gen.writeStartObject(); 
     gen.writeObjectField('expireEnabled', 'true'); 
     gen.writeObjectField('expireAfter', '7'); 
     gen.writeObjectField('expireWarn', '1');    
     gen.writeEndObject();  

     //end expiration 

     gen.writeEndObject(); 
     //end notifications 

不知何故,這些設置不起作用。

+0

這個API呼叫從頂點語言Salesforce的調用? – user3747018 2014-11-25 15:01:43

+0

這似乎在這篇文章中討論: http://stackoverflow.com/questions/23299085/rest-api-how-to-modify-email-notifications-in-docusign-request – mikebz 2014-11-26 01:12:28

回答

0

REST API指南中有關於提醒和過期的章節。下面是一個簡單的JSON:

notification":{ 
    "useAccountDefaults":"String content", 
    "reminders":{ 
     "reminderEnabled":"String content", 
     "reminderDelay":"String content", 
     "reminderFrequency":"String content" 
    }, 
    "expirations":{ 
     "expirationEnabled":"String content", 
     "expirationAfter":"String content", 
     "expirationWarn":"String content" 
    } 
} 

https://www.docusign.com/p/RESTAPIGuide/RESTAPIGuide.htm#REST API參考/發送Envelope.htm亮點=提醒和到期