We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
An annotation is a default Entity having specific logic to upsert an Annotation. No need to generate the entity and write parsing and upsert logic.
The Annotation.service.ts has two important methods to do the upsert:
import {Model} from '../WebApi/Model'; export interface AnnotationModel extends Model { annotationid?: string; documentbody?: string; filename?: string; mimetype?: string; notetext?: string; objectid?: { id: string; logicalName: string; }; subject?: string; versionnumber?: string; }
const entity = formContext.data.entity, annotation = await AnnotationService.parseAnnotation(blob, 'MyFilename.png', entity.getId(), entity.getEntityName()); await AnnotationService.upsertRecord(annotation);