When someone has published the document it goes to Document Histroy tab in SoftPro and is it 100% sure it also goes to Attachment ->folders ?????
I want to hit this "
https://api.myventuretrac.ml:8443/escro ... eDocuments" with payload when document is added how could I achieve this?
and one dll is missing I do not find it under SoftPro folder how could I get that?????
please found below the code which I write for attachmentadded event:
using SoftPro.Accounting.Client;
using SoftPro.ClientModel;
using SoftPro.EntityModel.Packaging;
using SoftPro.OrderTracking.Client;
using SoftPro.OrderTracking.Client.Orders;
using SoftPro.Select.Client;
using SoftPro.Select.Service;
using SoftPro.ServerModel;
using System;
using System.Runtime.InteropServices;
namespace ServerPackage1
{
[Guid("026ae76b-5489-447a-bafe-63ca269b69c6")]
partial class MyPackage : Package
{
// This method is called when the package is loaded by the server.
protected override void OnInitialize()
{
// Listen to the environment started event.
ISelectServerEnvironment environment = GetService<ISelectServerEnvironment>();
environment.Started += SelectServerEnvironment_Started;
}
// This method is called when the server is finished loading packages and services.
private void SelectServerEnvironment_Started(object sender, System.EventArgs e)
{
// Unhook this event as it is no longer needed.
ISelectServerEnvironment environment = GetService<ISelectServerEnvironment>();
environment.Started -= SelectServerEnvironment_Started;
IOrder order = GetService<IOrderStore>();
order.AttachmentAdded += Order_AttachmentAdded;
//This below url is api of my project which should be hit when some document is added
//how this url hit with payload data?????????????????
https://api.myventuretrac.ml:8443/escro ... eDocuments
}
// This method is called when an attachment is added
private void Order_AttachmentAdded(object sender, AttachmentItemEventArgs e)
{
IAttachmentItem item = e.Item;
System.Guid id = item.ID;
string attachment_name = item.Name;
string path = item.Path;
IAttachmentFolder parent_folder = item.Parent;
System.Collections.Generic.IDictionary<string,string> tag = item.Tags;
}
}
}