Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

CSOM - update resource availability

$
0
0

does anyone know how to update resource availability in CSOM? i need to rewrite some code written in PSI and can't find a way to do it. Any ideas?

here is my code in PSI

 updateDs.Tables["ResourceAvailabilities"].Rows[0]["RES_AVAIL_UNITS"] = 80;

            SvcResource.ResourceDataSet.ResourceAvailabilitiesRow resAvailRow = updateDs.ResourceAvailabilities.NewResourceAvailabilitiesRow();

            resAvailRow.RES_UID = resourceRow.RES_UID;
            resAvailRow.SetRES_AVAIL_FROMNull();
            resAvailRow.SetRES_AVAIL_TONull();
            resAvailRow.RES_AVAIL_UNITS = 80;
            updateDs.ResourceAvailabilities.AddResourceAvailabilitiesRow(resAvailRow);


tatiana


Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>