How to set the daily limit on the number of messages sent by users to doctors in Approved WeChat?
The limit value is specified by the WeChat Setting MESSAGE_LIMIT_vod__c. The default value is 4 and the maximum value is 999.
The number of messages sent by the user to the doctor is accumulated in the field Account.Total_Sent_Message_vod__c. When the field value is equal to the value in the WeChat Setting MESSAGE_LIMIT_vod__c, the user cannot send Approved WeChat messages to the doctor.
The Account.Total_Sent_Message_vod__c field value needs to be periodically reset by Apex Class-VEEVA_WEC_ACCOUNT_MSG_LIMIT_ SCHEDULED. The value can be reset regularly every day by scheduling an Apex job for the Apex Class.
Send us your feedback: We are always looking for feedback to help improve our Knowledge Base! Please let us know if this article is helpful or provide feedback on how we can improve your experience by clicking here.