Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

SDataService is not working  #9

@ch-adnan

Description

@ch-adnan

I am new to Sage Integration. My client has Sage 50 Accounts 2014 and I am asked to integrate supplier, customer and Sale Invoice data with .net application. I want to use SData 2.0 for this. Till now, I got there are two ways 1. SIF and 2. SData Service.

I tried to use SDataCSharpClientLib(https://github.com/Sage/SDataCSharpClientLib) but no luck. Below code I tried to use

AtomFeed feed;
var service = new SDataService("http://rental3:5493/sdata/accounts50/GCRM/{ECD9EE39-0E53-4DD7-B4E2-5E260ACD1850}/", "manager", "test123");
var rcu = new SDataResourceCollectionRequest(service);
rcu.ContractName = "test";
rcu.DataSet = "prod";
rcu.ResourceKind = "accounts";
rcu.StartIndex = 21;
rcu.Count = 10;
rcu.QueryValues.Add("where", "accountid='123456789abc'");
rcu.QueryValues.Add("orderby", "'account'");
feed = service.ReadFeed(rcu);

I am still not able to know how to proceed. Can you please guide. If possible can I get SIF for C#.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions