Run cht command to update settings
cht --url=https://<username>:<password>@localhost --accept-self-signed-certs compile-app-settings backup-app-settings upload-app-settings
Expected Behavior
I expected to receive message in parents phone number and have scheduled message on app management section>outgoing message. But nothing happens after I register a pregnancy
It appears that there’s an inconsistency between our documentation and our code, where the code requires that the start_from is defined and does not have a default value.
I’m leaning to think that the documentation is correct, so I’ll file this as a bug.
In the meantime, can you try updating your schedule configuration to include start_from and try again?
You should be able to see your scheduled message both on the report detail page an in the app management → outgoing message → scheduled (or due, in case enough time has passed that it becomes due).
Thank you @diana for your response. It works when I add start_from value reported_date. However, when I change it to lmp_date, no scheduled message appear after registering a pregnancy.
I can’t tell what the field is called or how it gets calculated from a form screenshot
Can you please share the form XML or XLS? Or confirm that you’re using default config.
Then the default config pregnancy form doesn’t have a field name lmp_date. You need to use the exact field path to get the schedule to work.
Can you please try using lmp_date_8601?
It should work with fields.lmp_date_8601.
One thing to note is that scheduled messages with a due date in the past will not get created.
When creating a pregnancy, your last menstrual period will be in the past, so you need to increase the offset in your config to generate a message. For example, I set mine to 5 months.