Unable to schedule shipment via CRMScript
Status: Not prioritized
Description
// create the message and save the ID
SpmMessage msg;
msg.setSubject("That or which");
msg.setBody("Is this a restrictive or non-restrictive clause?");
msg.setFolderId(-1);
msg.setDescription("Grammar 01");
Integer msgId = msg.save();
// create the recipient list and save the ID
SpmStaticList recipients;
recipients.setFolderId(-1);
recipients.setName("Novice authors");
recipients.addRecipient("me@address.com", "My name");
Integer listId = recipients.save();
// create the shipment and save the ID
SpmShipment myShipment;
myShipment.setFrom("sender@address.com");
myShipment.setMessage(msgId);
myShipment.addList(listId);
myShipment.addListSelection(4);
myShipment.setFolderId(-1);
myShipment.setDescription("Grammar lessons");
myShipment.setSendRate(10);
DateTime startDate;
myShipment.setStartDate(startDate);
Integer shipmentId = myShipment.save();
// Write debug info
print("Message ID: " + msgId.toString() + "\nList ID: " + listId.toString() + "\nShipment ID: " + shipmentId.toString() + "\n");
See forum posts: https://community.superoffice.com/en/developer/forum/rooms/topic/superoffice-product-api-group/customer-service/spmshipment-how-do-i-use-it-so-it-actually-sends-out-an-mailing-automatically/
info
Please log in to comment.
Details
Issue id | 15322 |
Registered | 7 Jul 2021 |
Last modified | 19 Mar 2025 |
Severity | Medium |
Area | Service |
Status | Not prioritized |
Target release | |
Type | Bug |
Comments
[2021.10.14: thoma]
Any updates on this?
[2022.06.13: Marcu]
Any updates on this??? It's unfortunate to have failing API-functions during too long time... Especially when it prevents automations that could be of good value for our partners and customers.
[2022.06.13: Marcu]
Updated forum links:
https://community.superoffice.com/en/technical/forums/api-forums/service-crmscript/spmshipment-how-do-i-use-it-so-it-actually-sends-out-a-mailing-automatically/
https://community.superoffice.com/en/technical/forums/api-forums/service-crmscript/mailing-created-with-spmshipment-not-send/
[2024.05.03: Marcu]
Related bug-report:
---
Thank you for taking the time to report the issue. After careful consideration, we have decided not to address this bug at this time. Our decision is based on one or more of the following reasons:
Limited Impact: While we understand this issue affects your experience, it has a minimal impact on the overall functionality of the system.
Priority and Resources: Higher-priority tasks or strategic goals take precedence, and this issue does not align with our current focus areas.
Workaround Available: A viable workaround exists, reducing the need for an immediate fix.
We appreciate your understanding and hope you can agree on this. This allows us to focus on delivering greater value in other important areas.
[2025.02.11: Marcu]
Would you please elaborate on or link to an article that explains the mentioned viable workaround?
[2025.03.19: Marcu]
Related bug-reports:
https://community.superoffice.com/en/product-releases/bugs-wishes/product-issue/?bid=15397&azure=1
https://community.superoffice.com/en/product-releases/bugs-wishes/product-issue/?bid=15421&azure=1
Related forum posts:
https://community.superoffice.com/en/technical/forums/api-forums/service-crmscript/spmshipment-how-do-i-use-it-so-it-actually-sends-out-a-mailing-automatically/
https://community.superoffice.com/en/technical/forums/api-forums/service-crmscript/mailing-created-with-spmshipment-not-send/