-
Hello everyone, Angular
{{field.displayText }}
TS @component({ formModel :any; form = new FormGroup({}); constructor(private apollo:Apollo,private http:HttpClient) {} ngOnInit() {
} onSubmit() { AddNewData(model:any){ how can i send the JSON to workflow to send the email and store into content item |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I have finally resolved the issue using 'Content-Type': 'application/x-www-form-urlencoded'
|
Beta Was this translation helpful? Give feedback.
I have finally resolved the issue using 'Content-Type': 'application/x-www-form-urlencoded'
AddNewData(model:any){ let body = new URLSearchParams(); body.set('Name', model.Name); body.set('Message', model.Message); let headers=new HttpHeaders({ 'Content-Type': 'application/x-www-form-urlencoded' }) let options = { headers: headers}; return this.http.post('https://localhost:44300/workflows/Invoke?token=Generated Token',body,options) .subscribe({ next: (response:any) => { console.log("success") }, error: (err: HttpErrorResponse) => { console.log(err.message) }}) ;