microsoft.dynamics.crm.entity.collection.request.AttachmentCollectionRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of odata-client-microsoft-dynamics Show documentation
Show all versions of odata-client-microsoft-dynamics Show documentation
Java client as template for Microsoft Dynamics organisation endpoints
package microsoft.dynamics.crm.entity.collection.request;
import com.github.davidmoten.odata.client.CollectionPageEntityRequest;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.NameValue;
import microsoft.dynamics.crm.entity.Attachment;
import microsoft.dynamics.crm.entity.request.ActivitymimeattachmentRequest;
import microsoft.dynamics.crm.entity.request.AttachmentRequest;
import microsoft.dynamics.crm.entity.request.SyncerrorRequest;
import microsoft.dynamics.crm.schema.SchemaInfo;
public class AttachmentCollectionRequest extends CollectionPageEntityRequest{
protected ContextPath contextPath;
public AttachmentCollectionRequest(ContextPath contextPath) {
super(contextPath, Attachment.class, cp -> new AttachmentRequest(cp), SchemaInfo.INSTANCE);
this.contextPath = contextPath;
}
public SyncerrorCollectionRequest attachment_SyncErrors() {
return new SyncerrorCollectionRequest(contextPath.addSegment("Attachment_SyncErrors"));
}
public SyncerrorRequest attachment_SyncErrors(String syncerrorid) {
return new SyncerrorRequest(contextPath.addSegment("Attachment_SyncErrors").addKeys(new NameValue(syncerrorid.toString())));
}
public ActivitymimeattachmentCollectionRequest attachment_activity_mime_attachments() {
return new ActivitymimeattachmentCollectionRequest(contextPath.addSegment("attachment_activity_mime_attachments"));
}
public ActivitymimeattachmentRequest attachment_activity_mime_attachments(String activitymimeattachmentid) {
return new ActivitymimeattachmentRequest(contextPath.addSegment("attachment_activity_mime_attachments").addKeys(new NameValue(activitymimeattachmentid.toString())));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy