← Back to team overview

dhis2-devs team mailing list archive

Re: WebApi failing Email, FileResources and

 

Hi Mike

I'm adding in the dev list, and Halvdan (who knows about file resource
API). I will have a look at the start as app functionality.

--
Morten

On Thu, Jun 2, 2016 at 5:00 PM, Mike Nelushi <mikeevolution@xxxxxxxxx>
wrote:

> Hi Calle,
>
> Apologies, forgot to add you on this thread.
>
> Regards
> Mike
> On 2 Jun 2016 11:35, "Mike Nelushi" <mikeevolution@xxxxxxxxx> wrote:
>
>> Hi Morten,
>>
>> Its Mike here from HISP-SA.
>>
>> We have been strangling to send email to individual users on our new
>> Community Service Application which is going live tomorrow. At the moment
>> when I send an email to individuals it sends to everyone who is a DHIS2
>> user. Im user the dhis2.23 messageConversations web-api for this.
>>
>> A. The following are the two json objects I've used, the first one
>> doesn't send messages at all the messages stays on dhis2 mail.
>> 1. var json_Data = {"subject": subject, "text": message, "users": users};
>> 2.var json_Data = {"subject": subject, "text": message, "users": users,
>> "organisationUnits": organisationUnits};
>>
>>
>> The following is our email settings
>>
>> [image: Inline image 1]
>>
>> B. Second Issue is that when we call fileResources webapi to save file is
>> does work but when you retrieve the file it says the file was not saved.
>> The following is the object:
>>                                     var file = item[0].files[0];
>>                                     var formData = new FormData();
>>                                     formData.append('file', file);
>>
>> C. The start page function on Appearance settings is not working if you
>> choice your own custom APP, when logging in it does it go to the landing
>> page instead it goes to index.action.
>>
>> Can you please help us with this issues?
>>
>> Regards,
>> Mike
>>
>

PNG image


Follow ups